package com.honey.solr.daosupport.field;

import com.honey.compilation.java.Decoration;
import com.honey.compilation.java.Field;
import com.honey.compilation.java.JavaVisibility;
import com.honey.core.types.JDKFullyQualifiedJavaType;
import com.honey.generator.java.AbstractClassName;

public class NotKeyWordField extends AbstractClassName {
	
	public Field createField(){

		Field answer = new Field("NOT_KEYWORD", JDKFullyQualifiedJavaType.getCharArrayInstance());
		Decoration d = answer.getDecoration() ;
		d.setFinal(true);
		d.setStatic(true);
		answer.setInitializationString("new char[]{'n','o','t',' '}",false);
		//其他语法写法
		//answer.setInitializationString("new char[]{'!',' '} ;",false);
		//answer.setInitializationString("new char[]{'-',' '} ;",false);
		d.setVisibility(JavaVisibility.PROTECTED);
		answer.addJavaDocLine("Lucene 查询语法中 not 语法关键字");
		return answer;
	}
}
